package com.liushao.service;

import com.liushao.entity.BorrowInfo;
import com.liushao.entity.Lend;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liushao.entity.vo.BorrowInfoApprovalVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的准备表 服务类
 * </p>
 *
 * @author chen
 * @since 2025-01-03
 */
public interface LendService extends IService<Lend> {

   public void createLend(BorrowInfoApprovalVO borrowInfoApprovalVO, BorrowInfo borrowInfo);

   public List<Lend> selectList();

  public Map<String, Object> getLendDetailById(Long id);

    public BigDecimal getInterestCount(BigDecimal investAmount, BigDecimal lendYearRate, Integer period, Integer returnMethod);

    public void makeLoan(Long id);
}
